import request from '@/utils/request'

// 查询列表
export function listContainer(query) {
  return request({
    url: '/basic/container/list',
    method: 'get',
    params: query
  })
}


// 查询详细
export function getContainer(id) {
  return request({
    url: '/basic/container/' + id,
    method: 'get'
  })
}

// 新增
export function addContainer(data) {
  return request({
    url: '/basic/container',
    method: 'post',
    data: data
  })
}

// 修改
export function updateContainer(data) {
  return request({
    url: '/basic/container',
    method: 'put',
    data: data
  })
}

// 删除
export function delContainer(id) {
  return request({
    url: '/basic/container/' + id,
    method: 'delete'
  })
}
